#ifndef CONNECTOR_H
#define CONNECTOR_H

#include <QThread>
#include <QTcpSocket>

class Connector : public QObject
{
    Q_OBJECT
public:
    Connector(QTcpSocket* socket,QThread* m_thread);
public:
    QString m_socketName;
private:
    QThread* m_thread;
    QTcpSocket* m_socket;
public slots:
    void readData();
    void disconnected();
    void stateChanged(QAbstractSocket::SocketState state);
};

#endif // CONNECTOR_H
